function Student(sno ,name, age ,sex){
    this.sno = sno;
    this.name = name;
    this.age = age;
    this.sex = sex;
    this.print=function(){
        console.log(this.sno+','+this.name+','+this.age+','+this.sex);
    }
}

var stu1 = new Student('123456','张三',20,'男');
stu1.print();